//package com.dailyblue.project.estate.controller;
//
//import jakarta.annotation.Resource;
//import org.springframework.ai.ollama.OllamaChatModel;
//import org.springframework.web.bind.annotation.*;
//import reactor.core.publisher.Flux;
//
///**
// * @Auther:Liu
// * @Testname:ChartModel
// * @Date:2025/9/22 11:17
// */
//@RestController
//@RequestMapping("/model")
//public class ChartModelController {
//    @Resource
//    private OllamaChatModel ollamaChatModel;
//
//    @GetMapping("/sync")
//    String call(@RequestParam("message") String message) {
//        return ollamaChatModel.call(message);
//    }
//
//    @GetMapping(value = "/stream",produces = "text/html;charset=utf-8")
//    Flux<String> stream(@RequestParam("message") String message) {
//        return ollamaChatModel.stream(message);
//    }
//}
